package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CYearreportDao;
import gov.ccswj.modules.ccbusiness.entity.CYearreportEntity;
import gov.ccswj.modules.ccbusiness.service.CYearreportService;



@Service("cYearreportService")
public class CYearreportServiceImpl implements CYearreportService {
	@Autowired
	private CYearreportDao cYearreportDao;
	
	@Override
	public CYearreportEntity queryObject(Integer id){
		return cYearreportDao.queryObject(id);
	}
	
	@Override
	public List<CYearreportEntity> queryList(Map<String, Object> map){
		return cYearreportDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cYearreportDao.queryTotal(map);
	}
	
	@Override
	public void save(CYearreportEntity cYearreport){
		cYearreportDao.save(cYearreport);
	}
	
	@Override
	public void update(CYearreportEntity cYearreport){
		cYearreportDao.update(cYearreport);
	}
	
	@Override
	public void delete(Integer id){
		cYearreportDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cYearreportDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cYearreportDao.delete(entname);
		
	}
}
